<#include "/templates/taglibs.ftl" />
<link rel="stylesheet" href="${contextPath}/assets/plugins/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="${contextPath}/assets/css/account.css" />
<div class="sign-box sign-dialog-box">
  <div class="sign-header">
      <a class="active" href="dialog_login">账户登录</a>
  </div>
  <div class="sign-body">
      <form class="layui-form" lay-filter="dialogLogin">
          <div class="tip-box">
          <#if (SPRING_SECURITY_LAST_EXCEPTION.message)?has_content>
              <i class="layui-icon layui-icon-face-cry"></i>
              ${(SPRING_SECURITY_LAST_EXCEPTION.message)!''} 
          </#if>
          </div>
          <div class="layui-form-item">
              <i class="layui-icon layui-icon-username"></i>
              <input type="text" id="username" name="username" value="${Session['SPRING_SECURITY_LAST_USERNAME']}"  autocomplete="off" 
              onkeyup="this.value=this.value.replace(/[\u4e00-\u9fa5]/g,'')"  lay-verify="required" placeholder="已注册的手机号码" class="layui-input">
          </div>
          <div class="layui-form-item">
              <input type="password" id="pubword" name="pubword" lay-verify="required|pass" autocomplete="off" placeholder="密码" class="layui-input">
              <input type="hidden" id="pubkey" name="pubkey"  value="${publicKey}" />
              <input type="hidden" id="password" name="password" value="" />
              <i class="layui-icon layui-icon-password"></i>
           </div>
           <div class="layui-form-item">
                <input type="text" id="validateCode" name="validateCode" lay-verify="required" autocomplete="off" placeholder="验证码" class="layui-input">
                <i class="layui-icon layui-icon-vercode"></i>
                <a href="javascript:;" onclick="jQuery('#vcImg').attr('src','${rc.getContextPath()}/validatecode?randomStr='+randomString(6));">
                    <img id="vcImg" class="vcImg" src="" title="点击换一张">
                </a>
                <div class="beg-pull-right beg-remember">
                      <a href="javascript:;" class="">登录遇到问题？</a>
                      <ul class="dropdown-menu">
                        <li><a href="mobile_reset">用手机号重置密码</a></li>
                        <li><a href="email_reset">用邮箱重置密码</a></li>
                      </ul>
                </div>
          </div>
          <div class="layui-form-item">
              <input type="hidden" id="_csrf" name="_csrf" value="${_csrf.token}" />
              <input type="submit" value="登录" lay-submit="" lay-filter="dialoglogin"  class="layui-btn layui-btn-normal" style="width: 100%;">
          </div>
      </form>
   </div>
</div>
<script type="text/javascript" src="${contextPath}/assets/plugins/layui/layui.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/jsencrypt.min.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/base64.min.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/account.min.js"></script>
